#include "WinSystem.h"
#include "Util.h"


int WINAPI WinMain(
	HINSTANCE hInstance,
	HINSTANCE hPrevInstance,
	PSTR pCmdLine,
	int CmdShow)
{
	TestDX::WinSystem * pSystem;

	pSystem = new TestDX::WinSystem();

	if(!pSystem)
	{
		// @ TODO: report failure
		return -1;
	}

	if(pSystem->Init())
	{
		pSystem->Run();
	}
	else
	{
		// @ TODO: Report initialization failure
	}

	pSystem->Shutdown();

	SAFE_DELETE(pSystem);

	return 0;
}